<template>
    <div class="index">
        <router-view/>
    <indexBottom/>
    </div>
</template>
<script>
import indexBottom from '@/components/njrcomponents/index_bottom.vue'
export default {
    data(){
        return{

        }
    },
    mounted(){
        // console.log(window.sessionStorage.getItem('token'));
        if(window.sessionStorage.getItem('token')!=1){
            this.$message.error('请先登录');
            this.$router.push('/login');
        }
    },
    components:{
        indexBottom
    }
}
</script>
<style lang="less" scoped>
// .index{
//     transform: scale(0.8);
//     transform: translateX(30%);
// }
</style>